import Vue from "vue";
import "./plugins/element";
import App from "./App.vue";
import "./plugins/axios";
import router from "./router/index";
import config from "@/assets/js/config";
import toolClass from "./assets/js/toolClass";
import "./assets/css/base.css";
import "./assets/css/common.css";
import Video from "video.js";
import "video.js/dist/video-js.css";
import EventBus from './eventBus'
Vue.prototype.$EventBus = EventBus
Vue.prototype.$video = Video;
Vue.prototype.config = config;
Vue.prototype.tool = toolClass;
Vue.config.productionTip = false;

router.afterEach(() => {
  window.scrollTo(0, 0);
});

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
